var express = require('express');
var router = express.Router();
const feedbackController = require('../controllers/feedbackController');
const userController = require('../controllers/userController');

// 校验
router.use(userController.verifyToken);

// 提交反馈
router.post('/create', feedbackController.createFeedback);

// 获取反馈列表
router.get('/list', feedbackController.getFeedbacks);

// 更新反馈状态
router.put('/update', feedbackController.updateFeedbackStatus);

// 获取反馈详情
router.get('/:id', feedbackController.getFeedbackDetail);

module.exports = router; 